﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Class
{
    class TaskNPC:NPC
    {
        private string taskInfo;

        public string TaskInfo
        {
            get { return this.taskInfo; }
            set { this.taskInfo = value; }
        }
        public TaskNPC(string name,NPCType type,string taskInfo)
        {
            this.taskInfo = taskInfo;
        }
        public override void Speak()
        {
            Console.WriteLine( "你能帮帮我吗？任务:{1}",this.Name,this.taskInfo);
        }
    }
}
